package org.blueoxygen.kukuruyuk.actions.item;
import org.blueoxygen.kukuruyuk.actions.item.ItemForm;
import org.blueoxygen.kukuruyuk.entity.Item;
import org.blueoxygen.kukuruyuk.entity.Supplier;
public class DeleteItem extends ItemForm{
	public String execute(){
		if(getItem().getId() != null &&
		!"".equalsIgnoreCase(getItem().getId())){
		setItem((Item) manager.getById(Item.class, getItem().getId()));
		manager.remove(getItem());
		}
		return SUCCESS;
		}
}
